#!/bin/bash
set -euo pipefail
BaseDir=$(cd "$(dirname "$0")"; pwd)
cd ${BaseDir}

echo $HOME
echo "cargo 配置国内镜像源"
rm -f "$HOME/.cargo/.package-cache"
cp -f ./config "$HOME/.cargo/."

echo "done"